package com.shop.dao;

import java.util.ArrayList;

import org.apache.ibatis.annotations.Param;

import com.shop.bean.Address;
import com.shop.bean.Orders;
import com.shop.bean.User;

public interface OrdersDao {
	public User selectByUname(String uname);

	public Address selectByUid(Integer uid);
	
	public int addOrders(Orders orders);

	public ArrayList<Orders> selectAll(String uname);

	public int deleteOrders(Integer integer);

	public ArrayList<Orders> selectAllByState(Integer uid);

	public int updateState(Integer gid);

	public ArrayList<Orders> queryOrdersBySname(@Param("sname")String sname);

	public int updateStateSeller(Integer gid);
}
